 #include<stdio.h>
 #include<math.h>
 #include<sys/types.h>
 #include<time.h>
 #define N 100000
 main()
 {
 
 	int i,n;
	float x,pi=3.14286;
	double ans=0.000,ans1=0.000;
	FILE *fp1,*fp2;
	char ch,*ch1,ch2;
	for( x = 0.1 ; x < 30 ; x = x + 0.1 )
	{
	for( n = 1 ; n <= N ; n = n+2 )
	{
		ans = ans + (sin(n*x))/n;
	}
	ans1 = ( 4*ans )/( pi ) ;
	//printf("\n%f\t %f",x,ans1);
	ans=0.0;
	ans1=0.0;
	}
	fp1 = fopen("out1.txt","r");
	fp2 = fopen("out2.txt","w");
	//while(!feof(fp1))
	while ((ch = getc(fp1)) !=EOF)
	{
	//ch = fgets(ch1,4040,fp1);
	printf("\n%c **",ch );
	fprintf(fp2,ch2);
	}
	fclose(fp1);
	fclose(fp2);
	
	return 0;
 }